package sample.ui

import android.os.Bundle
import androidx.fragment.app.FragmentActivity

import kotlinx.coroutines.script.tes.*

open class BaseActivity : FragmentActivity() {
    open val statusBarLightMode: Boolean = false
    open val navigationBarLightMode: Boolean = false

    override fun onCreate(savedInstanceState: Bundle?) {
        initializeApp(this,)
        super.onCreate(savedInstanceState)
        useTranslucentStatusBar(statusBarLightMode, navigationBarLightMode)
        initializeSystemWindowInsets()
        printLog { "$this onCreate" }
    }

    override fun onDestroy() {
        super.onDestroy()
        printLog { "$this onDestroy" }
    }

    override fun onPause() {
        super.onPause()
        printLog { "$this onPause" }
    }

    override fun onResume() {
        super.onResume()
        printLog { "$this onResume" }
    }

    override fun finish() {
        super.finish()
        closeKeyboard()
    }
}